Believe code is fully debugged for N a power of 2. Added linear and quadratic test cases.