Some simple planning algorithms