The pharaohs of Egypt worked out the first pyramid scheme.