split out number correctly classified points and added way to genrate permutations on the fly rather than storing. tested and this c++ std::next_permutation wrapper much faster than Matlab versions, and this not very mectorized method still faster than other access methods