A simulator for CRUSH algorithm