k-way merge and bst added