Parallelize building g
Use shared mem for w
Revert shared mem
Merge pull request #1 from lendle/parallel

Parallelize building g for ForwardStepwise