recursively find unique paths top down