added search API (closes #12), integrated search into polytable (closes #13)