Fast Continuous Max-Flow Algorithm to Potts Model