Man accused of killing two women, ruled competent to stand trial