Create squaredAlgorithm.py

This is from the Algorithms lecture in edX 6.00.1