Added I/O utility class FastScannerSlow and the RMQ implementation of SegmentTree