Performance improvments. BuildWeightMatrix() is probably unnecessary entirely.
Performance improvments.
BuildWeightMatrix() is probably unnecessary entirely.

ajjl/mlpack,ajjl/mlpack,stereomatchingkiss/mlpack,ranjan1990/mlpack,palashahuja/mlpack,theranger/mlpack,darcyliu/mlpack,ajjl/mlpack,theranger/mlpack,stereomatchingkiss/mlpack,stereomatchingkiss/mlpack,ranjan1990/mlpack,palashahuja/mlpack,darcyliu/mlpack,ranjan1990/mlpack,darcyliu/mlpack,palashahuja/mlpack,theranger/mlpack