first let me clear you are going for “3*3 2-dimensional square array” or “3*3*3 3-dimensional cube array”
if you are talking about 3-d array yes it is possible with at89c51
formula for 3-d array i/o lines = (n*n)+n*(m-1) // if u not using encoder and decoders
where n is size of cude like if y are going for 3*3*3 cube then (n*n*m)
and m is no. of floors.
and also plz specify what excetly you want in that.