Painlevé equations and their hierarchies