added adjacent_for_each algorithm that provides access to the previous element when iterating through a sequence