add linear search indexOf for int[]