Added factorial class and completed PascalTriangle.