standard complexity almost done

change_complexity still not vectorized.