Computer controlled system for 3D printing of building materials