fixed indentation
fixed indentation
fixed pep8 errors
fixed artifact error in kmeans
fixed bugs and added unit test
fixed bugs and added unit test
removed print
added docstring to unit test
added module-level docstring for test_mem