Create parent rows recursively