The algorithm has been re written. Improvements are logic simplicity and
less lines of code. It is documented a well.

Still needs to be tested against the latter best star algorithm for
approval.