Implemented spilling of registers