sorted two dimensional array data structure in PHP programming language