10x speedup using numpy arrays