Allen Pinkerton shared a friendship with then President Abraham Lincoln