added openmp multithreading parallel for in linear mmd