Adding Algorithm