BF: fix order of index subject, condition to slice data in format_matrix
Merge pull request #14 from cindeem/fix_newman

BF: fix order of index subject, condition to slice data in format_matrix