Explicit typing adds some speed
Merge pull request #1 from mac01021/master

Explicit typing adds some speed

I added type annotations and then compared performance on a bigish instance on my laptop. It shaved 35-40% off of the running time.