Double-side crime story

A story where you view both the detective and the criminal thoughs. The fun part is to discover how the bad guy escapes from his own internal thinking.