dichotomic search in the ray casting
 using Coordinate type instead of int type for coefficient
 fixing bug (coming from << operator of PointVector2D)