check for invalid numbers in arrange2D; add get and map function to children/parents in aggregateBy; determine right length for aggretateBy-structure