Added implementation for the Cochran Q test