Moved distinct authors code to lib folder