Personal algorithm and unittest test