Hierarchical deep-learning neural networks: finite elements and beyond