Fix BiCubic algorithm bug