MIN and MAX functionality implemented.

Added functionality to find max and min of assignments and their respective categories.