Created stiffness member function in BeamModel