Use a heap for bestn.
Cleanup.