Framework for stitching point clouds