Add rotate function to life.py.

Add tests for rotate and normalise.