A higher order nonlocal operator method for solving partial differential equations