add mathUtil binarySearch and BitmapData trim