Index Sequential Search Algorithm Python