Create select.cpp

select algorithm in CLRS.