Add algorithm related contents to write up