Fixed the wrong array offsets.

This fix resolves issue #65 by using the correct arrays offset in ByteBuffer.scala.