Add some utils

Add withChance and distance functs.
Make example of reduce usage.