Moved BinomialTree class into companion object.