Added multi class classification

1. added a parameter K in weightToMat/vec and initialize.
2. kmlp and mlp can be merged...