PeTra: A Novel Computer Code for Simulation of Slug Flow