graph: added matrix groups problem, modified quicksort