1. add a function to produce diagonal matrix. 2. add functions to draw 2D curves using python script.