use less dimension as array.
add test routine
add travis CI