unique paths problem, using recursion and dp