deadlock method works now.

tested method with a few simple deadlock situations and it worked so i
think thats good as long as we stick with the naming conventions
waitList and activeList for the vectors. matrix no longer needed.