A Variable-Flavour-Number Scheme at NNLO