Perhaps the slowness is due to your approach? Post the code using code tags so we can see what you're doing.