updated types.pyx Cython file with XMinHeap and XMaxHeap