1. added support for compress/decompress from buffer

2. added support for decompress from segmented file (DICOM)
fixed java wrapper project