added openmp multithreading where applicable. scaffolding for transpose operation