new lattice_paths solution