An optimized implementation of the Binary Search Tree Algorithm.