Removed a warning signed/unsigned comparison. Added a template-capable implementation of my::tgamma().