remove warning flag for c++ 11
add sort algorithm