made Node and BST classes templated