Machine Learning 1- and 2-electron reduced density matrices of polymeric molecules