sparse matrix data structure
in
PHP programming language