New speed improvements

With the help of Anders Holm, the soc.ca function now scales rather
well.
Fixed #74