indexOf() and lastIndexOf() for DoubleArray