Completely removed core.sq_dist() and calls to it from all of code. All tests pass.
Completely removed all usage of numpy matrix library.