Performance changes

btw, using matrices instead of cells is much faster and uses less memory..