script to test LMNN for many K values