add sort.rkt
sort and combine duplicates in discrete-dist
fix missing keyword in contract