The Design and Implementation of a Dynamic Resource Broker Framework in a Grid Environment