add vectorization with cost modeling.

vectorization of loops is intended to improve usage of loops on multiple cores.
adding cost modeling is intended to determine whether or not loops being run
will increase or decrease overhead.

Change-Id: Iad3059e96811c20347dbc687a9ac1137a1469503