BST BishopMove from Topcoder SRM 628