Basic arithmetic logic unit for circuits class