solution to Unique Paths