Changing the description of Megiddo's algorithm