Simple algorithm for supervised classification of an input into one of several possible non-binary outputs.