Internal Rate of Return, NPV takes an array

Internal Rate of Return returns expected results, though only to 1 percentage point. Changed NPV to accept array of cash flows; if array is not the expected length, just uses element 0 (use this to pass in a static cash flow as a 1-element list).