Colossus by Dennis Feltham Jones
( don't read the wikipedia entry as it contains spoilers ( whole plot ) )