An algorithm for nonsymmetric conic optimization inspired by MOSEK