Optical flow

add program to calc optical flow

it's a porting from flow_attention of our private repo.

![screenshot from 2014-06-09 13 13 50](https://cloud.githubusercontent.com/assets/40454/3213475/b1c1cec2-ef8f-11e3-8308-57bf2b89422c.png)