ABC optim working for both R and C!