tree construct improved & qsort started