Minor change in code comment.
Memory leak solved.
Function growDiag() implemented.