fixed condVar bug that doug pointed out and imported required Matrix package class and method