dictScan() algorithm documented.