The function NormalizeRows transforms all rows of the array Arr such that the row vectors exhibit unit length. The function returns a zero value if all rows could be processed or a -1 value if at least one row could not be processed (i.e. a row contained only zero values).