lots of changes; redesigned functions to make sequential permutation test easier; user-defined test statistics functions are supported; C++ interface for sequential permutation test is added