Given a node, tell if it is BST or DLL