Added 2 routines for substituting SharedWeights for unshared weights.  They are very similar!