----------Updated ------------
codymanix and moonshadow have been a big help thus far. I was able to solve my problem using the equations and instead of using right
try this, (but be aware for overflows) (Code in C#)
public static Int32 Maximum(params Int32[] values) { Int32 retVal = Int32.MinValue; foreach (Int32 i in values) retVal += (((i - retVal) >> 31) & (i - retVal)); return retVal; }