Ada Lovelace paved the way for Alan Turing’s more celebrated codebreaking a century before he was born