Adding sorting algorithms and sing term