Finished up curvature evolution algorithm