Refactored mean_square_error into geometry.py, added nearest_neighbors_error metric.