Added Solution to MinMax Algorithm