changed printing of path length to use std to remove compiler warning