added search in samples by patterns, added group statistic calculation