Adapted an existing Random Forest classifier for Apparatus.

Original source: https://github.com/karpathy/forestjs

The restore functionality still needs testing.