added the code with just the main function for UniqueRowsBinaryMatrix