Polynomial Global Minimum Finder - Coding problem | OneNoughtOne