added solution to calculate unique paths