Investigative Pattern Detection Framework for Counterterrorism