make eigsrt a template to be used on more than double