Worked on smj.cpp, calculated record size and started on sorting calls