Use NIO ByteBuffers for a dramatic speedup

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>