Captain William Kidd was hanged for his crimes and his body left to rot in a cage for three years as a warning to other pirat