Arithmetic Operations with Logic Gates