Primal-dual algorithm for linear and exponential cone problems with homogeneous embedding