operator function added, dense and unittest also added