piracy had become a livelihood for both mediterranean shores