Implementation of mergePressureProfiles