Modelling the Processes of Organic Matter Degradation and Nutrients Recycling in Sedimentary Systems