The evolution equation: An application of groupoids to material evolution