Of those prime ministers whom the old grammar schools escalator propelled from the bottom to the top of British society since the second world war, Ted Heath and Margaret Thatcher were in many ways the most alike.