Merge pull request #2 from echu/master

reorganized code structure. added random partition.
added code to set up the system for the convex intersetion problem