added the code for Unique row binary or any kind of matrix with comments