No longer chokes on unclosed quotes, or statements in a loop separated only
by newlines
Also, added quicksort and mergesort functions