Backend/util/diff Optimization

I've simplified the mDiff function by adding an 'addContext' and 'minValue' function literal to replace/optimize the existing code, as well as reprogrammed the innerContext function literal with for loops instead of recursion since Go does not optimize for recursion. To reduce the amount of looping that is required, I added a check to see if the number of loops to be performed is even and cut down the number of required loops in half if true. The code passes the backend tests and I've run the fmt fixer before uploading.
I don't understand why, but I'll remove them anyway.