Algoritm 2.1 and 2.2 Selection sort and isertion sort