A Learning Threshold Algorithm for Binary Linear Codes