Sped up generation time with OpenMP;Resolves #26;Resolves #24