version 2

Functionality now in methods, takes arrays prints lout arrays, lists
duplicates and number of duplicates.