function [out, succ] = hash_delete(table, x)
% removes x if it is present in hash table
indx = myhash(x, table.size)
arr = table.keys{indx}
indx1 = find(arr==x)
if isempty(indx1) 
    succ = false;
else
    arr(indx1) = [];
    table.keys{indx} = arr;
    succ = true;
end;
out = table;
    