Segmentation algorithm for non-stationary compound Poisson processes. With an application to inventory time series of market members in a financial market