Pull Request for the partitioning API

According to the post in https://groups.google.com/forum/#!topic/graphlab-kdd/K0fttgD6hBA