Adding Array.indexOf and lastIndexOf