Making various minor optimizations
Transferring all the FAST code to corner.py and corner_cy.pyx