Removing Dupes - Function

Useful function for removing duplicate values from an array