Fix buggy adjacent_difference implementation.
cast away the const so we can wait