A volume-fraction based algorithm for hybrid barotropic and non-barotropic two-fluid flow problems