Intelligent three-dimensional storage system