Fix: Variable initialization for TIMD of SGPM
for TIMD derivation process of SGPM,
Variable uiCostHor/uiCostVer which has uint64_t type is initialized to be -1. and the vaule of these variables are accumulated with template cost after that.
Hence, if template cost is exactly 0, the cost is still set to be MAX-1. it seems unusual.