Foundations of Crime Solving