A universal qudit quantum processor with trapped ions