find steady state for cultural revolution paper, modified from Selo's original code