matrix zeroes algo problem solved