Quad8 FEM code originally authored by Prof. Schalk Kok, to be translated from matlab to python.