Stitch meshes update

I added a new SerialMesh::stitch_surfaces function that stitches adjacent surfaces in a single mesh (as opposed to the stitch_meshes function that operates on two meshes). This required some minor changes (most of the diff below is due to white space changes).