A higher-order finite-difference compositional simulator