Speed up memory views in skeletonize function
Speed up memory views in watershed function