initial commit of matrix sorter