recursive add, subtract, and multiply functions in ruby