Learning How to Barter Successfully