Simplifying a few more routines in GeneralDistMatrix using InterleaveMatrix and Mod.