Initial commit. Started thread stuff, although it doesn't seem to speed things up much, and I'm getting a ConcurrentModificationException in one case.