Added input validation for numTicksProfit.cpp.
Added efficient return for minTick == 0 in numTicksProfit.cpp.

Signed-off-by: Mark Tompkins <mtompkins@firmusgrp.com>