Johnson's O(n*m*log(n)) alg working perfectly for small n, about 2 test 4 BIG n