unto previous 2 commits trying to optimize memcpy in pathSol