write an algorithm to find the sum of two numbers