add weighted interval scheduling
add segmented least squares
cleanup