hashed array tree data structure in PHP programming language