Major sorting algorithms and their implementation in c++.