Multi Dimensional Neural Networks-Unified Theory