Fixed issue that logx was not included in big O notation

Also reverted testcases that were changed earlier