Making keys comparable (ByteBuffer)