Basis Selection from Multiple Libraries