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