adding nogil to computationally intensive parts
had forgotten some other C functions
Merge pull request #4 from adrinjalali/master

adding nogil to computationally intensive parts