- added subtraction algorithm