Finite Elements Method implementation