got first_larger_index to work
fix initialize funtion to sort an array automatically
Got the index method to work