Added operations cycles. Broke a lot of tests - they will be fixed now
Fixed tests to correctly work with cycles. Fixed doCycle to correctly calculate all that