Update parser.cpp

adding bubble sort and insertion sort