implemented reverse insertion sort and linear search in python