Example of using Cython to speed up a heap implementation