Max and min reduction implemented
Partial implementation of reduction functions