Gradient Vector Analysis for Optimization - Coding problem | OneNoughtOne