Parallelize element precalculation
Merge pull request #40 from certik/openmp

Parallelize element precalculation