first part of parallel Davidson solver