An implementation of mergesort in D.