completed and verified ALU implementation