Efficient formulation for dynamics of corotational 2D beams