Mapping higher-order network flows in memory and multilayer networks with Infomap