rework cyclic coders
add extra tests for binarynumber
simplify leaveright