Implemented Iteraction functions for both Host and Device.
Added timing function to benchmark functions.