find duplicate element in a 32000 array for 4k byte memory