finished a few algos but most important was binarySearchTreeToArray