int matrix -> bool matrix
deleted "ref"