Add two numbers with constant memory