Added support for DEBUG messages to simplify debugging.
Implemented quicksort and insertionsort. Is correct for usage where BREAKPOINT < 2.