Algorithm for Detecting Hydrocarbon Leaks in Pipeline Transport With Intermediate Removal of Part of Hydrocarbon | Synapse