Use matrix and vector instead of weird arrays.
Add weighted cases to example.
Merge branch 'master' of github.com:jcow/Machine-Learning-Projects