changed some thing arond in the selection sort so it makes even more sense