Skeleton butterfly working for arbitrary dimension and level, despite possible heap corruption due to wacky indexing