A finite difference scheme for solving the undamped Timoshenko beam equations with both ends free