he has in mind history the way it was treated by georg wilhelm friedrich hegel , a german philosopher at the end of the 18th and start of the 19th centuries whose ideas influenced both hitler and stalin .