Added connect_in and connect_out functions to all current memory models, except hippocampus_with_forgetting, to connect as many input and/or output populations as desired to the memory models. In addition, it allows the instantiation of the memory model to be separated from the connection to the input and output populations.