Fixed indexing error in binarray class