committing with tree and bubble sort