Low molecular weight polyamine shale inhibitor