Mathematical modeling through topological surgery and applications. (2018)