Implemented decode functionality of value block tool.

Moved "isValueBlock", "isHexAnd16Byte", "reverseByteArrayInPlace"
to the common functions (Common.java).