Complete,executes in 12.46s, could do with better min and max search