Parenthesize X * X', as suggested by Matlab
Fix a bug in k-NN graph construction
Parameter tuning