put up functions

the main function is randomMatrixGenerator, which currently generates a
small class of partition matrices. GreedyAlg also works. The rest of the
functions are either helper functions, or junk.