Run method to evaluate algorithms' performance