Two-Dimensional Orthonormal Basis Generator - Coding problem | OneNoughtOne