A fast, accurate direct solver and determinant computation for dense linear systems