persistent implementation of statistical classification for node.js