add Pack.java PackTest.java

works similar to pack.h, but
- 'L' not supported
- pack() returns a short[] instead of writing to passed short[] buffer
- unpack() returns a long[] instead of writing to pointers in varargs