optimized JVM LongArray version