Shell sort algorithm implementation in Cpp.