Solve a problem involving data structures, such as implementing a binary tree. Implement build_bst(values), inserting values in order into a binary search tree. Ignore duplicate values and return the tree as nested arrays in the form [value, left, right], using None for missing children and [] for an empty tree.
values is a list of integers. Return the nested array representation of the resulting binary search tree.
def build_bst(values):