Use a queue instead of recursion for fill. Fixes #1.