add old matrix class and a quick test