fixed bugs for cube encoding and decoding; added random subcube specification for decoding