Delete_min works

The loop around line 134-153 should be cleaned up. Especially the
if-statement on line 138 is a dirty fix.