memoize variables
implement training with feature nodes
fix format of data