A simple and effective algorithm for the maximum happy vertices problem