Core: PowerMath - Add factorial(int) and maximum(int...) methods and tests for them