added functions on double double and quad double systems