Density Functional Theory in Metallic Alloys