starting allWithPrefix; using stack based walk