get_U function

Efficiently Construct U Matrix