Small changes

Particularly to BST so it is properly compatible with other data types
like Strings