add select and poll

select and poll prototype, and some example of how using them.