Michael Caine in a charming take on detective fiction