Added C-version of BLS, wrapped it with cython.