added removeDuplicates without buffer method
add no buffer test