sanju2323, AARYAN,
Thanks for your upload of these profiling apps.
However, it is not a good idea to profile from contour
if you have a TIN.
It does come handy if all you have are contour digitized
from a topographic maps.
I do have a way (unpublished yet) to do it without going
through get_neighbour.
Question: Which version are you using ?
It should not be that slow with only 14000 pts.
ymg