Heterocyclic chemistry for the development of small molecules targeting cancer and rare disease of the central nervous system