the number of unique path

also using dynamic programming, it's easy for me now. Here is only the
O(n) space one and there can be another, which the space is O(m*n), like
in min path in a matrix.