Added square and cube functions to Algebra