insert and find functions rewamped and testing added