simplify replication of Bai and Ng 2002
remove unneeded dependency
move helper functions to utils.jl
allow same number of rows and columns