Optimization

Add optimization chapter in doc.