GetProcedures made more efficient

Went from O(n) algorithm to O(log n) algo