multi dimensional bit array data structure in Javascript programming language