Binary Search Tree with basic traversal algorithms in Scala