add matlab scripts for line2d and box2d