Fixed bug in evaluatePhiAndGradPhi.m indicated in issue #2