Calculating reaction forces and shear force and moment diagram for overhanging beam