An analysis of inefficiencies in banking