Maciej Dulęba's submission of Matrix | CodeChef