多次元配列を関数に渡す ref: http://qiita.com/kics/items/a5fc977ed1f003faab1e