Add two algorithm sample codes