Short Representation of Quadratic Integers