Implemented code generation for while and dountil loops