Algorithms to determine de complexity of code