Classification of Certain Families of Finite P-Groups