A Sussex author has examined the surprising connection between the captain of the Titanic and the mysterious death of an MI5 spy.