Text this: An efficient algorithm to improve oil-gas pipelines path