Piecewise Linear Sigmoid Approximation - Coding problem | OneNoughtOne