Gabriel #1 I would also agree with big10p. If you're worried about the speed of all these comparisons, compare the squared totals. They're perfectly comparable as they are.