Use correct type for counter and improve algorithm to locate remainder locaion in cluster
Use actual remainder when setting
Improve remainder derivation
Better remainder shifting, not there yet