Add OpenMP.

Added OpenMP threading. If you think of anything else that can be shared, just put it in the shared list.