indexOf() and lastIndexOf() for ByteArray