Heavy quarkonium spectrum at O(αs5mq) and bottom/top quark mass determination