Advanced wellbore thermal simulator GEOTEMP2. Appendix. Computer program listing: Searching Inside