added some "member" functions for the scale3x algorithm implementation