fixes bugs in tests and a minor revision of logsumexp
Merge pull request #5 from lindahua/bugfixes

fixes bugs in tests and a minor revision of logsumexp
logsumexp, pventropy, softmax (supports both single-vector and multi-vector-batch)
add random sample without replacement
Merge pull request #6 from lindahua/migrate-mlbase

Several useful functions