+ cython implementation for speed & sys resources