Update parser.cpp

adding quick sort