Matrix Model for substance abuse treatment