Fixed call to average. THIS IS STILL WRONG IN NON-GPU CHOL.
Made "average" multithreaded. Need to string num_threads through.