I'm trying solve a problem which I have been able to code on a smaller scale though as soon as I start imputing larger values the time it takes increases considerably to the point where the final...