insertionSort added and linear search