function CostAd ported to GPU, it works however generate different results for disp in each run now, probably because of using double
deleted old files in steret gpu directory