added matrix methods, began replacing array methods