add algorithms includes and merge