2dcube segfaults for 16 threads
Added barriers and timing to blacscholes