Add transferFrom/transferTo methods to provide transfer optimizations

Implementation with unit test.

https://github.com/xerial/snappy-java/issues/57