Second version of Unique Paths