Added Rational caching system for small fractions, and compact method for QVector.
Using the cache when creating a QVector from a Array[Int].