added unit test for linear time MMD
made a more illustrative example now that tests are in unit-tests