Codes of Chapters 1,2,3,6,7, and Appendix are available in Github.