Added method for continuous matrices dot product