updated Max function, it is big but thats due to timing matching. But is a lot faster than my last one in its worst case scenario. O(logN) | Beltworks