C++: Added correct a skew correction. Added search in a rectangle.