Tuning curves helper functions

* Added a basic test for the ```tuning_curves()``` helper function.
* Made this function work for ensembles representing more than 1 dimension.

Everything above 2 dimensions will be hard to visualize. Thus, I added a function (and a test for it) to compute the tuning curves just along the preferred direction vectors.