A new method to characterize medium range order in metallic glasses