Yes, I can do that, but this is your task, right? Study binary search trees. You can build them either with arrays or with linked nodes. Post troublesome code here for help. Be sure and read the "Before you make a query" thread so you know how to post your code in code tags.