added c++ version of unique paths