Optimization

Changed many of the functions to that they do
not directly modify the lists. Also, moved
said lists so that they are not longer globals.

[ticket: None]

Changes committed:
	modified:   pisanoPeriods.py