Add parallel functionality

To enable OpenMP, you need to go to project
property->C/C++->Language->Open Mp Support should set to Yes