initial commit. works if only index value is less than searched value