Applications of Algebra in the Oil Industry, Phd Thesis