#toArray(E[] values) method's implementation added.