Added my algorithm base

Not a complete version. just very rough.