add quick find implementation in Java