algorithm implementation

In Progress