(Still under development), based on Luke Merrett's data-mining project (https://github.com/lukemerrett/nodejs-datamining-examples)