In reply to Muthamizh:
If you do not show how your implementation looks like I cannot give you an advice.