finally running a little faster than numpy on my laptop