Added profiliong
optimize code
Added graph contruction lap
Merge remote-tracking branch 'origin/develop' into develop