Gerrard agrees to sign 2-year contract extension at Liverpool