Unique paths in a maze