add simple binary algorithms