Use min() function on 2 vector output path in phatk kernel and don't use extra variable for both 2 and 4 vectors.