add frank matrix
add test for frank matrix