Replace ByteBuffer with short[] in Index