A higher order beam finite element for bending and vibration problems