make matrix constructor which takes iterator explicit