Fixed the comparison function definition, and switched how data is stored in a node.