prune.paths function

Prunes paths. Ties together lowest.z and return.zs functions.