add main file
Merge github.com:escoffier/algorithm