[INTERNAL] added more comments cleaned some code
[INTERNAL] cleaned some code in phase 1, added parallel section in beginning of phase 2
[INTERNAL][FIX] fixed a problem with shared variables in quicksort tasks,
added more comments
[INTERNAL] cleaned quicksort code and added comments
[INTERNAL] refactored code: created subfunction to have smaller mainfunction