Added segmented RDD to API. First step in optimization framework.
Merge pull request #5 from fnothaft/add-segmented-rdd

Added segmented RDD to API. First step in optimization framework.