Magnetic domain patterns of rectangular and elliptic arrays of small permalloy elements