corrected existsPathSum