Hierarchical algorithm testing. A litlle bit messy but only in additional files. Results already for simple hierarchical. Rest incoming.