Re-implent indexOf and lastIndexOf
Merge pull request #34 from kiennt/feature/indexOf

Refactor indexOf and lastIndexOf