bitset equal function
move jagged array to new file