A low cost neuromorphic learning engine based on a high performance supervised SNN learning algorithm