simplify ALU and modify Makefile