add function to create multydimention array of filesystem tree