The implementation of Median Threshold Bitmap alignment algorithm