Fix broken stack function
Make ofRows faster