Update complexity.r