Repositioning Control of a Two-Link Flexible Arm by Learning