Changed implementation of RepresentationNetwork to use a hash of Node structs. Implemented all but #lamarckian? methods for class.