unique path, back track