improved related articles algorithm