further removed pointer usage from cokriging class