Some attempts to make things work faster with FTW (not working as of now)
Working implementation of C extension