Cython BSM stuff -- could be WAY faster