Added: tree API, bubbleSort and selectionSort (with tests)