Refactor PiecewiseConstantDistribution
Implement PiecewiseLinerDistribution