refactor decisiontree.js
add test, it could also be a sample
complete README.md