added base Node class, LatticeNode and updateded tests