The Madman and the Pirate by Ballantyne, R. M. (Robert Michael) Twidle, Arthur
 is a Project Gutenberg book, now on Github.