got rid of compareOctalCodesDepth() and cleaned up compareOctalCodes()