Now also merging vertices of hole variable instead of just filling. Found another critical flaw in merge algorithm, but couldn't fix it yet.