dynamic m-dimensional bit array data structure in PHP programming language