First cut at implementation of cume_dist