added set method
added insertion sort