order and match finder implemented

The reference and pointer operation cost me more time than Java/Python