getValue returns D
getValue(input) moved into AbstractBinaryTree. 
Added generic for stored type to AbstractBinaryTree.