Refactor CodeSearchEngine class implementation

Signed-off-by: AndroWiiid <androwiiid@gmail.com>