a lua min heap library  implemention by c