Fast scalable construction of ([compressed] static | minimal perfect hash) functions