Added flag to compile with openMP
Fixed syntax errors for malloc functions