unittest added + brief added
algo added in brief