several common sort algorithm writen about one year ago to prepare for the NewTAS interview