Long awaited solution for 256 (runs in 20s).
Slow slow slow solution for 414 (runs in 45m).