simple example of using thrust library